﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using AiXiu.BLL;

namespace AiXiu.WebSite
{
    /// <summary>
    /// DeleteVideo 的摘要说明
    /// </summary>
    public class DeleteVideo : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            //读取参数
            string videoId= context.Request.Form["videoId"];
            //调用删除方法，删除视频
            VideoBLL videoBLL = new VideoBLL();
            videoBLL.Delete(videoId);
            context.Response.ContentType = "text/plain";
            context.Response.Write("ok");
            context.Response.End(); 
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}